package com.qf.ayc.procategory.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.ayc.procategory.entity.Procategory;
import com.qf.ayc.procategory.mapper.ProcategoryMapper;
import com.qf.ayc.procategory.service.IProcategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author BeautyFairy
 * @since 2024-02-20
 */
@Service
@Slf4j
public class ProcategoryServiceImpl extends ServiceImpl<ProcategoryMapper, Procategory> implements IProcategoryService {
    @Autowired
    private ProcategoryMapper procategoryMapper;
    @Override
    public List<Procategory> List() {
        QueryWrapper<Procategory> queryWrapper = new QueryWrapper<>();
        List<Procategory> procategories = procategoryMapper.selectList(queryWrapper);
        log.info("分类信息=",procategories);
        return procategories;
    }
}
